﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

[DataContract]

public class Customer
{
    /// <summary>
    /// Constructs a Customer object with phone number and booking.
    /// </summary>
    /// <param name="phoneNo"></param>
    /// <param name="booking"></param>
    public Customer(string phoneNo)
    {
        PhoneNo = phoneNo;
    }
    /// <summary>
    /// Get and Set Phone number
    /// </summary>
    [DataMember]
	public string PhoneNo
	{
		get;
		set;
	}
    /// <summary>
    /// Get and Set Name
    /// </summary>
    [DataMember]
	public string Name
	{
		get;
		set;
	}
    /// <summary>
    /// Get and Set Email
    /// </summary>
    [DataMember]
	public string Email
	{
		get;
		set;
	}
    /// <summary>
    /// Get and Set Booking
    /// </summary>
    [DataMember]
    public Booking Booking 
    { 
        get; 
        set; 
    }

    public override string ToString()
    {
        return "Phone Number: " + PhoneNo + " Name: " + Name + " Email: " +Email;
    }
}

